package org.pearl.springboot.minio.service;

import org.pearl.springboot.minio.pojo.query.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by TD on 2021/8/26
 */
@Service
public class UserService {

    @Autowired
    HttpServletRequest request;


    @Autowired
    User user;

    public User getUser() {




        for (int i = 0; i < 10; i++) {
            System.out.println(user.getUserId());
        }

        Object test = request.getAttribute("test");
        System.out.println(test);
        User user = new User();
        user.setName("吃个桃桃");
        user.setAge(15);
        return user;
    }
}
